Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose tcp_nodelay for clients and servers #145

Merged
merged 2 commits into from
Dec 6, 2019

Conversation

alce
Copy link
Collaborator

@alce alce commented Nov 21, 2019

closes #119

deny.toml Outdated
@@ -16,6 +16,7 @@ deny = [
]
skip = [
{ name = "crossbeam-utils", version = "=0.6.6" },
{ name = "crossbeam-queue", version = "=0.1.2" },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we back this out so that #153 contains the change.

@LucioFranco
Copy link
Member

Thanks for this

@alce alce force-pushed the set-no-delay branch 2 times, most recently from 7778aa6 to 6028aaf Compare November 26, 2019 15:07
@LucioFranco
Copy link
Member

if we can rebase this with master then we can merge this thanks!

@@ -80,7 +80,7 @@ tower = { git = "https:/tower-rs/tower" }
# Required for routeguide
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
rand = "0.7.2"
rand = "0.6"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why rand 0.6?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, didn't see this. Because at the time I wrote this, some other dependency (some tokio sub-crate, I think) wall pulling in 0.6, so I changed it to match.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess once 0.1 is close to finished we can sweep through all deps and remove what is not essential.

Copy link
Member

@LucioFranco LucioFranco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LucioFranco LucioFranco merged commit 0eb9991 into hyperium:master Dec 6, 2019
@alce alce deleted the set-no-delay branch December 7, 2019 14:54
rabbitinspace pushed a commit to satelit-project/tonic that referenced this pull request Jan 1, 2020
* expose tcp_nodelay

* do not depend on difference versions of rand
brentalanmiller pushed a commit to brentalanmiller/tonic that referenced this pull request Oct 6, 2023
* add: take_io method to LazyConfigAcceptor

The `take_io` method can be used to take back ownership of the client IO stream when an error occurs
during clientHello handshake.

An example of this is when a client tries to connect to an TLS socket expecting it to be plain text
connection. In this case take_io can be used to send a 400 response, "The plain HTTP request was
sent to HTTPS port", back to the client.

* rename test lazy_config_acceptor_take_io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose set_nodelay for server and channel
2 participants